package com.swallowtech.mstation.core.domain;

import java.util.Collection;

public abstract class AbstractBookmark extends LogEntity implements Bookmark{

	private String id;
	private String name;
	private String description;
	private String url;
	
    private String resourceKey;
    private Integer type = 1;
    private Integer mediaType = 2;
	
	//association
	private String userId;
	private  Collection<Tag> tags;

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url
	 *            the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	
	/* (non-Javadoc)
	 * @see com.swallowtech.mstation.core.domain.Bookmark#getTags()
	 */
	public Collection<Tag> getTags() {
		// TODO Auto-generated method stub
		return tags;
	}

	/* (non-Javadoc)
	 * @see com.swallowtech.mstation.core.domain.Bookmark#setTags(java.util.Collection)
	 */
	public void setTags(Collection<Tag> tags) {
		this.tags = tags;
		
	}

	/**
	 * @return the user
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @param user the user to set
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

    public String getResourceKey() {
        return resourceKey;
    }

    public void setResourceKey(String resourceKey) {
        this.resourceKey = resourceKey;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getMediaType() {
        return mediaType;
    }

    public void setMediaType(Integer mediaType) {
        this.mediaType = mediaType;
    }


	

	

}
